//
//  HTLiveUniPlugin.swift
//  HTLiveing
//
//  Created by wlf on 2024/6/10.
//

import Foundation
import UIKit

public class HTLiveUniPlugin:UIViewController{
    
//    static func showVC(vc: UIViewController, token: String){
//        let  tovc = HTLiveUniPlugin()
//        tovc.modalPresentationStyle = .fullScreen
//        tovc.hidesBottomBarWhenPushed = true
//        vc.present(toVC, animated: true)
//
//    }
 
   @objc public func jumpToLiveingWihToken(token: String, sourceVC: UIViewController) {
        let vc = TFInteractLive.init()
        vc.access_token = token
        let nav = RootViewController(rootViewController: sourceVC)
       let window = UIApplication.shared.keyWindow!
       window.rootViewController = nav
//       window.rootViewController? = nav;
//       sourceVC.navigationController?.pushViewController(vc, animated: true)
       nav.pushViewController(vc, animated: true)
//       sourceVC.present(nav, animated: true, completion: nil)
//       nav.pushViewController(vc, animated: true)
    }
}
